/*
 * @Author: your name
 * @Date: 2021-10-13 14:30:56
 * @LastEditTime: 2021-10-30 10:14:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /egg_dome/app/router.js
 */
'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/logins', controller.home.logins);
  router.post('/login', controller.login.userLogin);
  router.resources('list', '/list', controller.list);
};
